﻿// Member.cs
//

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ServiceModel.DomainServices;
using System.ServiceModel.DomainServices.Server;

namespace BookClub.Web.DataModel {

    [MetadataType(typeof(MemberMetadata))]
    public partial class Member {

        private static class MemberMetadata {

            [Required]
            public static readonly object MemberName = null;

            [Required]
            public static readonly object MemberOffice = null;

            [Editable(false, AllowInitialValue = true)]
            public static readonly object MemberAlias = null;

            [Editable(false)]
            public static readonly object JoinDate = null;

            [Editable(false)]
            public static readonly object LoginDate = null;

            [Exclude]
            public static readonly object PasswordHash = null;

            [Exclude]
            public static readonly object IsAdmin = null;
        }
    }
}
